package com.weiyuwqj.server.service.account.module.action;

import com.weiyuwqj.api.constant.DealType;
import com.weiyuwqj.api.util.IpUtils;

import java.util.Date;

/**
 * Created by zhangyong on 2016/10/12.
 * 提前还款扣除待收金额
 */
public class DeductWaitDealAction extends AbstractDealAction{

    public DeductWaitDealAction() {
        log.setOperType(DealType.DEDUCT_WAIT);
    }

    @Override
    public void dealAccount() {
        log.setWait(log.getOperMoney());
        log.setBudgetType(-1);
        log.setAddip(IpUtils.get());
        log.setAddtime(new Date());
    }
}
